package com.ywl.study.transaction.controller;

import com.ywl.study.transaction.service.DemoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping
@Slf4j
public class DemoController {

    @Autowired
    DemoService demoService;

    @RequestMapping
    @ResponseBody
    public void createOrder(){
        demoService.createOrder();

        log.info("创建订单成功");
    }
}
